package domd4;
class student{
    private String name;
    private int age;
public student(){
    System.out.println("构造代码块。。。");
}
    {
        System.out.println("实例代码快");
    }
    public student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public String red(){
        return "我是："+name+",年龄:"+age;
    }
}
public class Main {
    public static void main(String[] args) {
     student stu1=new student();
     student stu2=new student();

    }
}
